export interface ArticleRequestData {
  /** admin 或 editor */
  // username: "admin" | "editor" | "test"
  limit: string
  type: string
  page: string
}
export interface TableData {
  title: string
  description: string
  id: number
}

export interface detailData {
  id: number
  title: string
  description: string
  content: string
}

export interface CommentList {
  id: number
  content: string
  user_id: number
  username: string
  create_time: string
  parent_id: number
  avatar: string
}
export interface yaosuCardData {
  id: number
  title: string
  saca_description: string
  content: string
  pian_total: number
  xiangsidu_qujian: number
  dianzan_num: number
  commnet_num: number
  fenxiang_num: number
  collect_num: number
  commentList: CommentList
  lingyu: string
  fenlei: string
  dengji: string
  xueshi: string
  shiyong: string
}
export type getCardDetailListResponseData = ApiResponseData<{ TableData: [], code: number, msg: string }>
// 文章返回数组和code
export type articleResponseData = ApiResponseData<{ TableData: [], code: number, msg: string, count: number }>

// 文章返回数组和code
export type articleDetailResponseData = ApiResponseData<{ data: detailData, code: number, msg: string }>

// 问答请求数据结构
export interface askQuestionRequestData {
  user_id: number
  content: string
  tags: string
}
//问答返回列表数据结构
export interface askQuestionResponseData {
  code: number
  msg: string
  data: any
}

// 问答列表
export type getHistoryQuestionListResponseData = ApiResponseData<{ TableData: [], code: number, msg: string }>

// 问答列表
export type getQuestionListResponseData = ApiResponseData<{ TableData: [], code: number, msg: string }>

// courseListResponseData
export type courseListResponseData = ApiResponseData<{ TableData: [], code: number, msg: string }>

// getCardDetailDetailResponseData
export type getCardDetailDetailResponseData = ApiResponseData<{ data: yaosuCardData, code: number, msg: string }>

// sendCommentResponseData
export type sendCommentResponseData = ApiResponseData<{ code: number, msg: string }>

// doLikeResponseData
export type doLikeResponseData = ApiResponseData<{ code: number, msg: string }>
// doCollectResponseData
export type doCollectResponseData = ApiResponseData<{ code: number, msg: string }>

// 订单返回数据结构
export type addOrderResponseData = ApiResponseData<{ code: number, msg: string, data: string }>

// 微信支付返回数据结构
export type wechatPayResponseData = ApiResponseData<{ code: number, msg: string, data: string }>

export type getWxStatusResponseData = ApiResponseData<{ code: number, msg: string, data: string }>

export type getWxQrCodeResponseData = ApiResponseData<{ code: number, msg: string, data: string }>

export type getWechatLoginUrlResponseData = ApiResponseData<{ code: number, msg: string, data: string }>

export type checkOrderDetailResponseData = ApiResponseData<{ code: number, msg: string, data: string }>

export type wechatScanLoginResponseData = ApiResponseData<{ code: number, msg: string, data: string }>

export type getUserInfoResponseData = ApiResponseData<{ code: number, msg: string, data: string }>

export type myinfoupdateResponseData = ApiResponseData<{ code: number, msg: string, data: string }>

export type saveUserDataResponseData = ApiResponseData<{ code: number, msg: string, data: string }>

export type saveUserAvatarResponseData = ApiResponseData<{ code: number, msg: string, data: string }>

export type getUserFollowListResponseData = ApiResponseData<{ code: number, msg: string, data: string }>

export type getUserCommentListResponseData = ApiResponseData<{ code: number, msg: string, data: string }>

export type getUserPaymentListResponseData = ApiResponseData<{ code: number, msg: string, data: string }>

export type getUserNoticeListResponseData = ApiResponseData<{ code: number, msg: string, data: string }>

export type getCirclePostListResponseData = ApiResponseData<{ code: number, msg: string, data: any }>
